package com.gao.web.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gao
 * @time 2022/11/05 10:23:19
 */
@RestController
@RequestMapping("api")
public class HelloController {

    @GetMapping("greeting")
    public String greeting() {
        return "greeting";
    }

    @RequestMapping("rushb")
    public String rushb() {
        return "rushb";
    }

    @PreAuthorize("hasAuthority('user:save')")
    @RequestMapping("csgo")
    public String csgo() {
        return "csgo";
    }

}
